package router

import (
	"github.com/gin-gonic/gin"
	swaggerFiles "github.com/swaggo/files"
	ginSwagger "github.com/swaggo/gin-swagger"
	_ "modulename/docs"
)

var router *gin.Engine

func InitRouter(r *gin.Engine) {
	// 指定 swagger 路径
	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
	// 导入其他路由
	UserRouter(r)
	StudentRouter(r)
}
